package com.gi.profiler;

import android.app.Application;
import android.content.Context;
import android.os.StrictMode;

public class ProfilerApplication extends Application {

    private static Context context;
    private static final boolean DEVELOPER_MODE = true;

    public void onCreate() {
//	if (DEVELOPER_MODE) {
//	    StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder().detectAll()
//		    .penaltyLog().build());
//	    StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder().detectLeakedSqlLiteObjects()
//		    .detectLeakedClosableObjects().penaltyLog().penaltyDeath().build());
//	}
	super.onCreate();
	ProfilerApplication.context = getApplicationContext();
    }

    public static Context getAppContext() {
	return ProfilerApplication.context;
    }

}
